﻿using System;
using BizControl.Library.BusinessObjects.People;
using BizControl.Library.BusinessObjects.Models;
using Csla;

namespace BizControl.Library.Criterias
{
  [Serializable()]
  public class ModelAndBoolCriteria : CriteriaBase<ModelAndBoolCriteria>
  {
    private bool _includeEmptyObject;
    public bool IncludeEmptyObject
    {
      get { return _includeEmptyObject; }
    }

    private ModelBO _model;
    public ModelBO Model
    {
      get { return _model; }
    }

    public ModelAndBoolCriteria(ModelBO model, bool includeEmptyObject = false)
    {
      _model = model;
      _includeEmptyObject = includeEmptyObject;
    }
  }

}
